package com.cebbank.yyi.springbootapp.jingtang.service;

import com.cebbank.yyi.springbootapp.jingtang.entity.RcDocAttachment;

/**
 * 文档附件列表(RcDocAttachment)表服务接口
 *
 * @author makejava
 * @since 2024-08-22 10:34:43
 */
public interface RcDocAttachmentService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    RcDocAttachment queryById(String id);

    /**
     * 分页查询
     *
     * @param rcDocAttachment 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
//    Page<RcDocAttachment> queryByPage(RcDocAttachment rcDocAttachment, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param rcDocAttachment 实例对象
     * @return 实例对象
     */
    RcDocAttachment insert(RcDocAttachment rcDocAttachment);

    /**
     * 修改数据
     *
     * @param rcDocAttachment 实例对象
     * @return 实例对象
     */
    RcDocAttachment update(RcDocAttachment rcDocAttachment);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(String id);

}
